﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YmSoft.Old
{
    [Msg(0x4D, 0x08, 0xAA)]
    //[RecordTypeAttribute(ERecordType.PhecReturnSearch)]
    public class PhecReturnSearch : MsgBase
    {
        public PhecReturnSearch() : base() { }

        public PhecReturnSearch(byte[] data) : base(data) { }

        [SP(0x03)]
        public byte Id { get; set; }

        [SP(0x04)]
        public byte Ph04 { get; set; }

        [SP(0x05)]
        public byte Ph05 { get; set; }

        public decimal Ph { get { return Ph05 + Ph04 / 100m; } }

        [DP(0x06, 0x07)]
        public short Ec { get; set; }

        public bool IsPhec { get { return true; } }
    }
}
